import request from "@/axios.js";

// 根据条件搜索老师
export function getTeacherByCondition(content) {
  return request({
    url:'/gmu/tbl-teacher/getTeacherByCondition',
    method:'post',
    data: content
  })
}

// 批量删除老师
export function deleteTeachersInBatches(userIds) {
  return request({
    url: '/gmu/tbl-teacher/deleteUserByIds/ ' + userIds,
    method: 'delete'
  })
}

// 删除单个老师
export function deleteSingleTeacher(teacherId) {
  return request({
    url: '/gmu/tbl-teacher/deleteTeacher/' + teacherId,
    method: 'delete',
  })
}

// 批量导出学生
export function batchExportTeachers() {
  return request({
    url: '/gmu/teacherexcel/out',
    method: 'get',
    responseType: 'blob'
  })
}

// 获取当前页的学生信息
export function getCurrentPageTeachers(pageInfo) {
  return request({
    url: '/gmu/tbl-teacher/pageTeacher/' + pageInfo.current + '/' + pageInfo.size,
    method: 'get'
  })
}